package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.CollMedicineEntity;
import io.renren.modules.hos.vo.CollMedicineContentVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-12-04 11:06:45
 */
public interface CollMedicineService extends IService<CollMedicineEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据药品id查询信息
     * @return
     */
    CollMedicineContentVo selectMedicineInfoById(Long medicineId);

    /**\
     *  删除收藏(medicationId) 然后在获取userid
     * @param medicationId
     * @return
     */
    boolean deleteById(Long medicationId);

    /**
     * 根据用户id查询收藏的药品id
     * @param hosUserId
     * @return
     */
    PageUtils queryListByUser(Long hosUserId, Map<String, Object> params);
}

